<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:replace="fragments :: head(title='BelongTo : View all')">
		<title>BelongTo : View all</title>
	</head>
	<body>
		<div class="container">
			<div th:replace="fragments :: navbar"></div>
			<h1>BelongTo : View all</h1>
			<div class="container">
				<div class="pull-right">
					<a href="form.html" th:href="@{/(form)}">Create BelongTo</a>
				</div>
				<table class="table table-bordered table-striped">
					<thead>
						<tr>
							<td>ID</td>
							<td>Name</td>
						</tr>
					</thead>
					<tbody>
						<tr th:if="${belongtos.empty}">
							<td colspan="2">No messages</td>
						</tr>
						<tr th:each="belongto : ${belongtos}">
							<td th:text="${belongto.id}"></td>
							<td th:text="${belongto.name}"></td>

						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</body>
</html>
